home *** CD-ROM | disk | FTP | other *** search
- Path: mcrware.microware.com!jejones
- From: jejones@microware.com (James Jones)
- Newsgroups: comp.lang.c++
- Subject: Re: using cout like printf
- Date: 5 Mar 1996 23:26:59 GMT
- Organization: Microware Systems Corp., Des Moines, Iowa
- Message-ID: <4hiik3$c1h@mcrware.microware.com>
- References: <DnF5vA.GAD@actcom.co.il> <4hgb5j$5s5@ixnews3.ix.netcom.com>
- NNTP-Posting-Host: mork.microware.com
-
- In article <4hgb5j$5s5@ixnews3.ix.netcom.com> Zachary Carter <zcarter@ix.netcom.com> writes:
- > Yes, you have to put manipulators on the stream 'ahead' of the
- >thing which you want to format. Look up 'manipulators' in the C++
- >book of your fancy. Hope that helps... : )
-
- I understand that aside from setw(), those manipulations of stream behavior
- hold until the next adjustment. Is there some way to cause the stream to
- return to whatever its former state was (which of course isn't necessarily
- the default state) after outputing (sp?) something that you want output in
- a particular way? (Say you have conditionally compiled debugging output
- that wants to print some value in hex.)
-
- James Jones
-
- Opinions herein are those of the author, and not necessarily those of any
- organization.
-